package com.groupbuying.file.service;

import com.groupbuying.file.domain.OssFileDO;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-02-19 11:18:09
 */
public interface OssFileService {
	
	OssFileDO get(String uuid);
	
	List<OssFileDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(OssFileDO ossFile);
	
	int update(OssFileDO ossFile);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);

	/**
	 * 批量保存文件数据
	 * @param lsFile
	 */
	int batchAdd(List<OssFileDO> lsFile);

	/**
	 * 通过文件组code 查询
	 * @param fileKey
	 * @return
	 */
	List<OssFileDO> queryByFileGroupCode(String fileKey);
}
